class Authentication {
  static Future<void> authenticate(String username, String password) async {
    // 模拟登录过程
    await Future.delayed(const Duration(seconds: 1));
    if (username != 'admin' || password != '123456') {
      throw Exception('用户名或密码错误');
    }
  }
}
